package com.Travit;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class VendorTrackService extends Activity{
	private static String loggedid;
	ImageButton back;
	ImageButton logoutbutton;
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		Bundle extras = getIntent().getExtras();
		loggedid = extras.getString("loggedid");
		setContentView(R.layout.vendortrackrequest);
		back = (ImageButton) findViewById(R.id.backbutton);
		logoutbutton = (ImageButton) findViewById(R.id.logout);
		logoutbutton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent newIntent = new Intent(v.getContext(), TravITActivity.class);
				newIntent.putExtra("venid", loggedid);
				startActivity(newIntent);
			}
		
			
		});

		back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent newIntent = new Intent(v.getContext(), Vendor.class);
				newIntent.putExtra("venid", loggedid);
				startActivity(newIntent);
			}
		
			
		});
	}

}
